home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!news
- From: philma@ix.netcom.com(Phil Majtan)
- Newsgroups: comp.lang.c
- Subject: Re: code overflow annoyance
- Date: 20 Apr 1996 22:32:54 GMT
- Organization: Netcom
- Message-ID: <4lbomm$npm@dfw-ixnews2.ix.netcom.com>
- References: <sugar-1604961528300001@129.64.9.9>
- NNTP-Posting-Host: det-mi4-10.ix.netcom.com
- X-NETCOM-Date: Sat Apr 20 5:32:54 PM CDT 1996
-
- In <sugar-1604961528300001@129.64.9.9> sugar@binah.cc.brandeis.edu
- (Phil Sugar) writes:
- >
- >Hi, I apologize in advance if this is posted in an inappropriate
- newsgroup.
- >
- >I'm using Think C 5.0 and I need to declare many arrays for a program
- I'm
- >writing, but the stupid dope won't let me declare more than about 60K
- >worth of variables. I have over 1800K of free Ram, and I've tried
- >changing Think C's memory partition but I still always get the "Code
- >Overflow" compilation error if I try to declare an array larger than
- 60K.
- >How can I solve this? Thanks very much for any advice you can give
- me!
-
- You might be limited to a single segment for your variables. You
- probably have to use a 'LARGE' memory model to compile. I don't know
- anything about Think c, so I don't know what it uses, but I'm sure it
- has some way to set the memory model.
- The problem is probably from the fact that you are limited to 64K code
- and 64K data. The arrays are usually allocated from a 'heap' bewteen
- the stack and the end of the code. Once this is used up, you're outta
- luck.
- Phil
-
-